package com.sakiko._02_springboot_initalizr.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: com.sakiko._02_springboot_initalizr.controller
 *
 * @author: Yang
 * description: test mudule quick start
 * time: 2025/7/26 0:48
 */
@RestController
@RequestMapping("hello")
public class HelloController {

    @Value("${yang.user.name}")
    private String name;

    @GetMapping("springboot")
    public String springboot() {
        System.out.println("HelloController.springboot");

        System.out.println(name);
        return "hello spring boot";
    }
}
